﻿using System;

namespace Sustainalytics.ESGRatings.BusinessLogic.Tests.ESGRatings
{
    using Sustainalytics.ESGRatings.BusinessLogic.ESGOnlineReport;

    using Xunit;

    public class OnlineBusinessLogicUnitTest
    {
        private const string WarehouseConnectionString = "mongodb://sustadmin:G4nd4lf2014@ec2-54-72-160-155.eu-west-1.compute.amazonaws.com:27017/ClientDW_B";

        [Fact]
        public void GetOverallPerformanceFromDB()
        {
            var sut = new OnlineResearchProductsBusinessLogicUnit(WarehouseConnectionString);
            var result = sut.GetEsgOverallPerformanceSummary(
                new Guid("bcb01e55-3af1-44ae-bc32-00bb9f000f98"),
                new Guid("15c3b0e2-c87d-4d2a-ad3f-e16b586a2ffe"));
            Assert.NotNull(result);
        }
    }
}
